import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    
    {
      path: '/Login',
      name: 'Login',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/LoginView.vue'),
    },
    {
      path:'/rightList',
      component:()=>import('../views/member/RightList.vue')
    },
    {
      path:'/rightAdd',
      component:()=>import('../views/member/RightAdd.vue')
    },
    {
      path:'/MemberLevelList',
      component:()=>import('../views/member/MemberLevelList.vue')
    },
    {
      path:'/memberLevelAdd',
      component:()=>import('../views/member/MemberLevelAdd.vue'),
    },
    {
      path:'/memberLevelUpdate',
      component:()=>import('../views/member/MemberLevelUpdate.vue'),
    },
    
    {
      path:'/MemberList',
      component:()=>import('../views/member/MemberList.vue')
    },
    {
      path:'/MemberAdd',
      component:()=>import('../views/member/MemberAdd.vue')
    },
    {
      path:'/memberUpdate',
      component:()=>import('../views/member/MemberUpdate.vue'),
    },
    {
      path:'/shoplist',
      component:()=>import('../views/shop/ShopList.vue'),
    },
    {
      path:'/shopAdd',
      component:()=>import('../views/shop/ShopAdd.vue'),
    },
    {
      path:'/shopUpdate',
      component:()=>import('../views/shop/ShopUpdate.vue'),
    },
    {
      path:'/shopDetail',
      component:()=>import('../views/shop/ShopDetail.vue'),
    },
    {
      path:'/shopCountList',
      component:()=>import('../views/shop/ShopCountList.vue'),
    },
    {
      path:'/discountlist',
      component:()=>import('../views/discount/DiscountList.vue'),
    },
    {
      path:'/disModelAdd',
      component:()=>import('../views/discount/DisModelAdd.vue'),
    },
    {
      path:'/discountupdate',
      component:()=>import('../views/discount/Discountupdate.vue'),
    },
    {
      path:'/discountcount',
      component:()=>import('../views/discount/DiscountCount.vue'),
    },
    {
      path:'/houseadd',
      component:()=>import('../views/House/HouseAdd.vue'),
    },
    {
      path:'/houseshow',
      component:()=>import('../views/House/Houseshow.vue'),
    },
    {
      path:'/housetypedetail',
      component:()=>import('@/views/House/Housetypedetail.vue'),
    },
    {
      path:'/houseTypeUpdate',
      component:()=>import('@/views/House/HouseTypeUpdate.vue'),
    },
    {
      path:'/houseNoList',
      component:()=>import('@/views/House/HouseNoList.vue'),
    },
    {
      path:'/housenoadd',
      component:()=>import('@/views/House/HouseNoAdd.vue'),
    },
    {
      path:'/housePriceList',
      component:()=>import('@/views/House/HousePriceList.vue'),
    },
    {
      path:'/houseRowList',
      component:()=>import('@/views/House/HouseRowList.vue'),
    },
    {
      path:'/housePriceAdd',
      component:()=>import('@/views/House/HousePriceAdd.vue'),
    },
    {
      path:'/houseRowAdd',
      component:()=>import('@/views/House/HouseRowAdd.vue'),
    },
    {
      path:'/updHousePrice',
      component:()=>import('@/views/House/UpdHousePrice.vue'),
    },
    
  ],
})

export default router
